<template>
	<div class="app">
		
		<Category title="美食">
			<img slot="s1" :src="foodUrl">
			<a href="#" slot="s2">更多美食</a>
		</Category>

		<Category title="游戏">
			<ul slot="s1">	
				<li v-for="(item,index) in games" :key="index">
					{{item}}
				</li>
			</ul>
			<a href="#" slot="s2">单机游戏</a>
			<a href="#" slot="s2">网络游戏</a>
			<a href="#" slot="s2">大型游戏</a>
		</Category>

		<Category title="电影">
			<video slot="s1" :src="movieUrl" controls/>
			<a slot="s2" href="#">热门</a>
		</Category>

		<Category title="汽车">
			<ol slot="s1">	
				<li v-for="(item,index) in cars" :key="index">
					{{item}}
				</li>
			</ol>
			<a slot="s2" href="#">热销车型</a>
		</Category>
		
	</div>
</template>

<script>
	import Category from './components/Category'

	export default {
		name:'App',
		components:{Category},
		data() {
			return {
				foodUrl:'https://s3.ax1x.com/2021/01/16/srJlq0.jpg',
				games:['王者农药','绝地求生','红色警戒','英雄联盟'],
				movieUrl:'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4',
				cars:['奔驰','宝马','奥迪']
			}
		},
	}
</script>

<style>
	.app{
		display: flex;
		justify-content: space-around
	}
	a{
		margin-right: 30px;
	}
</style>